package com.varz.sso.server.oauth.service;


import com.varz.sso.server.oauth.mapper.PermissionMapper;
import com.varz.sso.server.oauth.model.entity.PermissionDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionService {

    @Autowired
    private PermissionMapper permissionMapper;

    public List<PermissionDO> getByUserid(Long userId) {
        return permissionMapper.queryByUserid(userId);
    }
}
